package cn.edu.ujn.dao;

import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    int deleteByPrimaryKey(Integer user_id);//主键删除

    int insert(User record);//插入

    int insertSelective(User record);

    User selectByPrimaryKey(Integer user_id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    public User findUser(@Param("usercode") String usercode,    @Param("password") String password);

    //查询
    List<User> selectUserList(HashMap map);

    int selectUserListCount(String keyWord);
    
    User selectByUserCode(String user_code);
}
